package com.hotel.reservation.dao;

import com.hotel.reservation.po.Manage;
import com.hotel.reservation.po.Message;
import com.hotel.reservation.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ManageDao {
    List<Manage> adminLogin(Manage manage);
    int addManage(Manage manage);
    int deleteManage(int id);
    List<Manage> selectAllManageByPage(Map<String, Object> map);
    List<Manage> showManage();
    int updateManageById(Manage manage);
    List<Manage> findOneManage(int id);
    List<Message> findOneMessage(int id);
    List<Message> showMessage();
    List<Message> selectMessageByPage(Map<String, Object> map);
    int  updateMessage(Message message);
    int deleteMessage(int id);
}